<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="p" uri="/WEB-INF/tld/page.tld" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>交账管理</title>
<jsp:include page="/header.jsp"></jsp:include>
<link href="${basePath }/css/ui.css" rel="stylesheet" type="text/css">
</head>
<body>
	<div id="header_div" class="tab_li clearfix">
		<a href="${basePath }/shift/takeStock.htm" class="act">下班盘点</a>
	    <a href="${basePath }/shift/summary.htm" class="">交账管理</a>
	    <a href="${basePath }/shift/takeStockdiff.htm" class="">差异商品</a>
	    <a href="${basePath }/shift/check_view.htm" class="">上班核实</a>
	    <a href="${basePath }/shift/list.htm" class="">交班记录</a>
	</div>
	<div class="main">
	    <div class="cont">
    	<div class="main">
        <div class="cont">
        	<div class="ui">
		        <table class="table_list">
		            <tr class="">
		              <th class="">序号</th>
		              <th>提交时间</th>
		              <th class="">扫描区域</th>
		              <th class="">盘点人员</th>
		              <th class="">上班库存</th>
		              <th class="">下班库存</th>
		              <th class="">商品回购</th>
		              <th class="">当班pos销售</th>
		              <th class="">多</th>
		              <th class="">少</th>
		            </tr>
		            <c:forEach items="${takeStocks }" var="takeStock" varStatus="status">
		            <tr class="">
		              <td class="">${status.index+1 }</td>
		              <td class="">${takeStock.create_time }</td>
		              <td class="">${takeStock.shelf_name }</td>
		              <td class="">${takeStock.user_name }</td>
		              <td class="">${takeStock.old_stock }</td>
		              <td class="">${takeStock.new_stock }</td>
		              <td class="">${takeStock.buyback_num }</td>
		              <td class="">${takeStock.pos_num }</td>
		              <td class="">
		              	<c:choose>
		              		<c:when test="${takeStock.duo_num eq 0 }">0</c:when>
		              		<c:otherwise>
		              			<a href="${basePath }/shift/takeStockdiff.htm?takeStockId=${takeStock.id}&type=1">${takeStock.duo_num }</a>
		              		</c:otherwise>
		              	</c:choose>
		              </td>
		              <td class="">
		              	<c:choose>
		              		<c:when test="${takeStock.shao_num eq 0 }">0</c:when>
		              		<c:otherwise>
		              			<a href="${basePath }/shift/takeStockdiff.htm?takeStockId=${takeStock.id}&type=2">${takeStock.shao_num }</a>
		              		</c:otherwise>
		              	</c:choose>
		              </td>
					</tr>
		            </c:forEach>
		        </table>
    		</div>	
    	</div>
    </div>
    <p:page map="${page }"></p:page>
</div>
</div>
</body>
</html>